﻿using System.Collections.Generic;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using MarkdownRow.Assets;

namespace MarkdownRow.Views;

public partial class Home : UserControl
{
    public Home(IEnumerable<UseFile> files)
    {
        InitializeComponent();
        FileItems = this.FindControl<ItemsControl>("FileItems");
        FileItems!.ItemsSource = files; 
    }
}